const btn1 = document.getElementById('btn1')
const btn2 = document.getElementById('btn2')
const btn3 = document.getElementById('btn3')
const input1 = document.getElementById('input1')
const btn4 = document.getElementById('btn4')
btn1.onclick = () => {
    alert('你点我了')
}
btn2.onclick = () => {
    alert('chrome = ' + myAPI_1.chrome_version + '\n' + 'electron = ' + myAPI_1.electron_version + '\n' + 'node = ' + myAPI_1.node_version)
}

btn3.onclick = () => {
    //alert(input1.value)
    myAPI_1.saveFile(input1.value)
}
btn4.onclick = async () => {
    let data = await myAPI_1.readFile()
    alert(data)
}